
class RR:


    def __init__(self, aQueue):
        self.queue=aQueue

    
    def takeProgram(self):
        return self.queue.pop(0)
    
    def addPcb(self, aPcb):
        self.queue.append(aPcb)
        #print('[kernel.sch] %s'%(self.memory))
        
    def __repr__(self):
        return 'ready%s'%(self.queue)
    
    def isEmpty(self):
        return len(self.queue) == 0
        
       
